import request from "../utlis/request";

export default {
    userRegist(name,pwd){
        return request({
         method: 'post',
         url: '/user/regist',
         data:{
             name: name,
             password: pwd
         }
        })
     },
     userLogin(name,pwd){
         return request({
          method: 'post',
          url: '/user/login',
          data:{
              name: name,
              password: pwd
          }
         })
      },
      LoginOut(name,userId){
         return request({
             method: 'post',
             url: '/user/loginOut',
             data: {
                 name: name,
                 id: userId
             }
         })
      },
}